<template>
    <div>
        <el-carousel :interval="5000" type="card" arrow="always">
            <el-carousel-item v-for="item in imgLists" :key="item">
                <img :src="item" alt="" style="width: 100%;height: 100%;">
            </el-carousel-item>
        </el-carousel>

        <el-row :gutter="20">
            <el-col :xs="24" :sm="12" :md="6" v-for="o in cardLists" :key="o">
                <el-card :body-style="{ padding: '0px' }">
                    <img :src="o.img" class="image">
                    <div style="padding: 14px;">
                        <span>{{ o.title }}</span>
                        <div class="bottom clearfix">
                            <time class="time">{{ currentDate }}</time>
                            <el-button type="text" class="button">操作按钮</el-button>
                        </div>
                    </div>
                </el-card>
            </el-col>
        </el-row>
    </div>
</template>

<script>
export default {
    data() {
        return {
            imgLists: [
                require("@/assets/img/bar1.jpg"),
                require("@/assets/img/bar2.jpg"),
                require("@/assets/img/bar3.jpg"),
                require("@/assets/img/bar4.jpg"),
                require("@/assets/img/bar5.jpg"),
            ],
            cardLists: [
                { title: '标题一', img: require("@/assets/img/bar1.jpg") },
                { title: '标题二', img: require("@/assets/img/bar2.jpg") },
                { title: '标题三', img: require("@/assets/img/bar3.jpg") },
                { title: '标题四', img: require("@/assets/img/bar4.jpg") },
            ]
        }
    },
    methods: {
    },
    components: {
    }
}
</script>

<style>
.el-card__body img {
    width: 100%;
    height: 150px;
}
</style>